// JavaScript Document
function get_calendar(url){
	var url = site_url+url;
	ajax_post(url,'pcaledar');
}

function bsrch_html(){
	
   var bsrch = '<a href="#" class="btninput" onclick="pcgform.submit();">Search Now</a><div class="h10 cl"></div><a href="#" class="btninput" onclick="advsrch_html();">Advanced Search</a>';
	$('#advsrch').html(bsrch);
}

function get_city(country_id){
	var url = site_url+'modules/ajax/common.php?country_id='+country_id+'&action=get_city';
	var str = '<select class="dropdown" name ="city" id = "city"> <option value="0">-----Select-----</option>';
	ajax_combo(url,'citycombo',str);
              
}
function get_wtheme(){
	var url = site_url+'modules/ajax/common.php?action=get_wtheme';
	var str = '<select class="dropdown" name ="wtheme" id = "wtheme"> <option value="0">-----Select-----</option>';
	ajax_combo(url,'wthemecombo',str);
              
}
function get_wcategory(){
	var url = site_url+'modules/ajax/common.php?action=get_wcategory';
	var str = '<select class="dropdown" name ="wcategory" id = "wcategory"> <option value="0">-----Select-----</option>';
	ajax_combo(url,'wcategorycombo',str);
              
}



function advsrch_html(){
	
   var advsrch = '<a class="btninput" href="#">Advanced Search</a><div class="advancesearch"><div class="selectedbtn"><a href="#" onclick="bsrch_html();">Advance Search <img align="right" src="images/spacer.gif"></a></div><div class="innercolor"><div class="label fl">Theme :</div><div class="fl"><span id="wthemecombo"><select class="dropdown"><option>-----Select-----</option></select></span></div><div class="cl"></div><div class="label fl">Category :</div><div class="fl"><span id="wcategorycombo"><select class="dropdown"><option>-----Select-----</option></select></span><div class="cl"></div><a class="btninput" href="#" onclick="pcgform.submit();">Search Now</a></div></div></div>';
	$('#advsrch').html(advsrch);
	get_wtheme();
	get_wcategory();
}